<?php
require_once 'vendor/autoload.php';

// Create the Transport
$transport = (new Swift_SmtpTransport('smtp.mail.ru', 465,'ssl'))
  ->setUsername('supports@doratv.club')
  ->setPassword('iT*AiEDuyy24')
;

// Create the Mailer using your created Transport
$mailer = new Swift_Mailer($transport);

// Create a message
$message = (new Swift_Message('Wonderful Subject'))
  ->setFrom(['supports@doratv.club' => 'Doratv'])
  ->setTo(['adapa@qq.com'])
  ->setBody('This is test email')
  ;

// Send the message
$result = $mailer->send($message);
